package com.dempsey.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dempsey.user.dao.Address;
import com.dempsey.user.dao.User;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Dempsey
 * @description 针对表【user】的数据库操作Service
 * @createDate 2022-05-01 02:15:53
 */
@Service
public interface UserService extends IService<User> {

    User createUser(User user);

    // 修改
    User updateUser(User user);

    // 获取
    User getUserById(int userId);

    // 获取
    User getUserByUsername(String username);

    // 根据用户获取地址
    List<Address> getAddressesByUserId();

    // 获取地址
    List<Address> getAddressesById();

    // 创建地址
    void createAddress();

    // 删除地址
    void disableAddress();
}
